import { defHttp } from '@/utils/http/axios';

enum Api {
  GetOrderStatus = '/agent/newOrderReminder/getOrderStatus',
  GetOrder = '/agent/collectionOrderManagement/index',
}

export function getOrderStatusApi(params?: any) {
  return defHttp.post<any>({
    url: Api.GetOrderStatus,
    params,
  });
}

export function getOrderApi(params: any) {
  return defHttp.post<any>({
    url: Api.GetOrder + `?page=${params.page}&limit=${params.pageSize}`,
    params,
  });
}
